#include "adder.h"

Adder::Adder()
{
	/* 给界面指针复制 */
	ui = new Ui_Dialog();
	/* 加载界面 */
	ui->setupUi(this);

	QObject::connect(ui->equ, SIGNAL(clicked()),
		this,  SLOT(getRes()));
};

Adder::~Adder()
{
	delete(ui);
};

void Adder::getRes()
{

	ui->res->setText(QString::number(ui->add->text().toDouble() + 
			ui->added->text().toDouble(),'g',16));
};
